package com.usian.mapper;

import com.usian.pojo.Users;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UsersMapper extends tk.mybatis.mapper.common.Mapper<Users> {
   @Select("select * from users where nam=#{nam} and pwd=#{pwd}")
    Users login(Users users);
@Select("select * from users")
    List<Users> FindAll();
@Delete("delete from users where id=#{id}")
    void del(Integer id);
@Select("select * from users where id=#{id}")
    Users findOne(Integer id);
}
